const odooModelName = 'product.product'

const values_default = {
  company_id: 1001

  // m2m的默认值如何设置
  // taxes_id: []
}

const domain_default = {
  company_id: 1001
}

const fields_default = {
  pricelist_item_ids: { name: null }
}

const filterItems = ['name___like']
const columns = [
  'name',
  'default_code',
  { name: 'pricelist_item_ids_names', type: 'char', label: '产品' }
]

const formItems = ['name', 'default_code']
const Model = {
  name: odooModelName,

  configs: {
    values_default,
    domain_default,
    fields_default,
    columns,
    filterItems,
    formItems,
    handle: {
      view: { hidden: true }
    }
  }
}
export default Model
